package com.dakor.catalog.persistence.dao;

import com.dakor.catalog.persistence.entity.Film;

import java.util.List;

/**
 * DAO-interface for entity {@link com.dakor.catalog.persistence.entity.Film}.
 *
 * @author Korobeynikov Dmitry
 * @version 1.0
 */
public interface IFilmDao {

    /**
     * Insert entity into database.
     * @param film entity for saving
     */
    void insert(Film film);

    /**
     * Select all rows of table.
     * @return table's rows
     */
    List<Film> selectAll();

    /**
     * Clear table.
     */
    void clear();

}
